Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pistol-static compilation #72

Merged
merged 2 commits into from
Nov 27, 2021
Merged

Add pistol-static compilation #72

merged 2 commits into from
Nov 27, 2021

Conversation

doronbehar
Copy link
Owner

@doronbehar doronbehar commented Oct 20, 2021

Fixes #23 and closes #76.

Currently the pistol executable depends on a reference to magic mime database. We need to use an alternative database path or embed the contents of it in pistol. For that we'd probably need to fork rakyll/magicmime, see #76 .

Use my fork of magicmime and add a buildtag EMBED_MAGIC_DB that makes
the compilation embed the database using golang's "embed" package.  Copy
the embedded magic database to ~/.local/share/pistol if needed.
Flake lock file changes:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/997f7efcb746a9c140ce1f13c72263189225f482' (2021-08-20)
  → 'github:numtide/flake-utils/bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4' (2021-11-15)
• Updated input 'gitignore':
    'github:hercules-ci/gitignore.nix/80463148cd97eebacf80ba68cf0043598f0d7438' (2021-09-30)
  → 'github:hercules-ci/gitignore.nix/5b9e0ff9d3b551234b4f3eb3983744fa354b17f1' (2021-10-25)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/88226ea038e538e09c272a7c56ba73c3f5eed57f' (2021-08-25)
  → 'github:nixos/nixpkgs/73369f8d0864854d1acfa7f1e6217f7d6b6e3fa1' (2021-11-25)
@doronbehar doronbehar marked this pull request as ready for review November 27, 2021 14:17
@doronbehar doronbehar merged commit 8178bb0 into master Nov 27, 2021
@doronbehar doronbehar deleted the static branch November 27, 2021 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant